local CheckWidgetType = UI.CheckWidgetType
local CheckArgType = UI.CheckArgType
local CheckArgWidget = UI.CheckArgWidget
local MakeAccessor = UI.MakeAccessor
local MakeTypeSetter = UI.MakeTypeSetter

--[[ Model @FIXME ]]--
local Model = UI.NewWidgetType("Model", "Frame")
Model.parameters = {
	sequence = false,
	time = false,
	scale = 1,
}

function Model:Initialize(o)
	local t = UI.params[o]
	assert(t)
end

MakeTypeSetter("Model", "SetSequence", "sequence", "number")
MakeTypeSetter("Model", "SetSequenceTime", "time", "number")

MakeAccessor("Model", "GetModelScale", "scale")
MakeTypeSetter("Model", "SetModelScale", "scale", "number")

--~ MakeAccessor("Model", "GetModel", "model")
MakeTypeSetter("Model", "SetModel", "model", "string")

UI.RegisterScriptHandlers(Model, "OnAnimFinished")
